package level4.shaders
{
	import flash.display.DisplayObject;
	
	import level4.tools.MathTool;

	public class ShaderHelper
	{
		public static const Instance:ShaderHelper = new ShaderHelper();
		
		public function play(do2d:DisplayObject):void{
			if(MathTool.isHappen(.5)){
				pixelShader(do2d);
			}else{
				waveShader(do2d);
			}
		}
		public function pixelShader(do2d:DisplayObject):void{
			new PixelShader(do2d);
		}
		public function waveShader(do2d:DisplayObject):void{
			new WaveShader(do2d);
		}
	}
}